package cn.smbms.service;

import java.util.List;

import cn.smbms.pojo.User;

public interface UserService {
	/**
	 * 用户登录
	 * @param userCode
	 * @param userPassword
	 * @return
	 */
	public User login(String userCode,String userPassword);	
	/**
	 * 查询用户表记录数
	 * @return
	 */
	public int count();	
	/**
	 * 查询用户列表
	 * @return
	 */
	public List<User> getUserList();	
	/**
	 * 增加用户
	 * @param user
	 * @return
	 */
	public int add(User user);
	
	/**
	 * 修改用户信息
	 * @param user
	 * @return
	 */
	public int modify(User user);	
	
	public int updatePwd(Integer id, String pwd);
	
	public User getUserById(Integer userid);
	
	public int deleteById(Integer userid);
	
	public List<User> getUserListByUserName(String queryname);
	
	public List<User> getUserLists(User user);
	
	public User getUserByUserName(String username);
	
}
